package com.inspur.icity.bus.base.core.repo;


import com.inspur.icity.bus.base.core.util.AESUtil;
import org.apache.commons.dbcp.BasicDataSource;

import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.logging.Logger;

/**
 * 重置BasicDataSource
 *
 * Created by jn-dinggao on 2017/10/20.
 */
public class BusBasicDataSource extends BasicDataSource {
    org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(BusBasicDataSource.class);

    @Override
    public synchronized void close() throws SQLException{
        DriverManager.deregisterDriver(DriverManager.getDriver(url));
        super.close();
    }
}
